/*
 * @Author: esraiskan
 * @Date: 2022-08-03 22:06:28
 * @LastEditTime: 2022-10-20 14:34:55
 * @LastEditors: esraiskan
 * @Description: 描述
 */
import {get,post,postObj,put,Delete,putAction} from '../utils/manage';


const workflow = {
  publishProcess:(p) => get('workFlow/process/publish', p),//发布流程
  stopProcess:(p) => get('workFlow/process/backPublish', p),//停用流程
  saveProcess:(p) => postObj('workFlow/processModelBpmn/add', p),//保存流程
  getProcess:(p) => get('workFlow/processModelBpmn/detail', p),//获取流程图

  
  addProcess:(p) => postObj('workFlow/processModelDefinition/add', p),//编辑流程
  editProcess:(p) => putAction('workFlow/processModelBpmn/edit', p),//编辑流程
  
  getProcessDetail:(p) => get('workFlow/processModelBpmn/getDetailById', p),//获取流程详情：名称，类型，父级流程，xml
  getBpmnTodo:(p) => get('qbt/qbtCase/getPage', p),
  submitTask:(url, p) => postObj(url, p),

  
  editCase:(p) => putAction('qbt/qbtCase/edit', p),//编辑客户信息
  editSurveyInfo:(p) => putAction('qbt/qbtCaseInspectReport/edit', p),//编辑保存下户尽调
  getNodeHistory:(p) => get('qbt/qbtCase/nodeHistory', p),//获取审批意见
  
  getFirstCheckData:(p) => get('qbt/qbtCase/getByCaseNumber', p),
  getThirdCheckData:(p) => get('qbt/qbtCaseInspectReport/getByCaseNumber',p),//获取下户尽调详情
  getFileList:(p) => get('qbt/qbtCaseUploadInformations/getFileList', p),
  getHandleTabs:(p) => get('workFlow/process/getParam',p),
  getPauperInfo:(p) => get('qbt/qbtCaseDeclareInspect/detailByCaseNumber',p),//获取下户信息
  getPauperAppoint:(p) => get('qbt/qbtCaseDeclareInspect/detailByCaseNumber',p),//获取下户信息
  getAllUser:(p) => get('sys/user/queryAll',p),//获取所有用户
  getAllFunder:(p)=> get('qbt/qbtFundInformation/queryAll',p),//查询所有资方
  getAllHouseType:()=> get('qbt/qbtCase/getAllHouseType'),//查询所有房产类型
  getAllProductType:()=> get('qbt/qbtProductTypeSubMapping/getByProductTypeId'),//查询所有房产类型
  
  getAllFunderProduct:(p)=> get('qbt/capitalProductRule/queryListByFundInfomationId',p),//查询所有资方产品
  
  getAllCity:()=> get('qbt/qbtRegion/queryAll'),//查询所有资方产品
  getAllOwners:(p)=> get('qbt/qbtCaseJointOwner/getByCaseNumber',p),
  getXmlViewer:(p)=>get('workFlow/processModelBpmn/detail',p),//获取流程图
  getProcessHistory:(p)=>get('workFlow/process/historyToColor',p),
  
  getAppointInfo:(p) => get('qbt/qbtCaseAppointmentBusinessHandling/getByCaseNumber',p),//获取预约业务办理详情
  getBusinessHandleInfo:(p) => get('qbt/qbtCaseBusinessHandling/getByCaseNumber',p),//获取业务办理详情

  getFunderCheckInfo:(p) => get('qbt/qbtCaseCapitalFinalJudgment/getByCaseNumber',p),//获取资方终审详情
  
  getDepositInfo:(p) => get('qbt/qbtCaseInBet/getByCaseNumber',p),//获取入押详情
  getLoanInfo:(p) => get('qbt/qbtCaseLoan/getByCaseNumber',p),//获取放款详情
  getCaseInfo:(p) => get('qbt/qbtCase/getTopTabData',p),//获取信息概况
  getRollBackList:(p) => get('qbt/qbtCase/getRebuttableUeerTaskListByCaseNumber',p),//获取可驳回列表
  rejectBack:(p) => get('qbt/qbtCase/caseRollBack',p),//驳回
  transferTask:(p) => get('workFlow/processAssigneeChange/changeAssignee',p),//转交任务

  deleteOwner:(p) => Delete('qbt/qbtCaseJointOwner/deleteById',p),//获取可驳回列表

  getparentPageList:(p) => get('workFlow/dynamicTab/parentPageList',p),//上级环节的列表

  submitWorkConfig:(p) => postObj('workFlow/workContent/add',p),//添加工作内容
  editWorkConfig:(p) => putAction('workFlow/workContent/edit',p),//编辑工作内容
  
  getProcessWorkPage:(p) => get('workFlow/workContent/listByProcessId',p),//查询流程下工作page
  getProcessWorkList:(p) => get('workFlow/processWorkContent/list',p),//查询工作内容流程列表
  submitProcessWorkPage:(p) => postObj('workFlow/processWorkContent/add',p),//提交流程工作页面
  
  batchDelFile:(p) => Delete('qbt/qbtCaseUploadInformations/deleteBatch',p),//批量删除文件
  createFolder:(p) => postObj('qbt/qbtCaseUploadInformations/createFolder',p),//新建文件夹
 
  getPrefundBusinessHandle:(p) => get('qbt/qbtCaseBusinessHandling/getByCaseNumber',p),//获取赎楼流程业务办理详情
  getprefundCheckDetail:(p) => get('qbt/qbtCaseReviewTheDepository/getByCaseNumber',p),//获取赎楼流程复核存管详情

  getAfterLoanDetail:(p) => get('qbt/qbtCaseDefacementInBet/getDetailByCaseNumber',p),//获取赎楼流程涂销入押详情

  getCardMntDetail:(p) => get('qbt/qbtCaseCardCreditMonitoring/getByCaseNumber',p),//获取赎楼流程卡证资信详情

  getReceiveDetail:(p) => get('qbt/qbtCaseReturnedMoney/getByCaseNumber',p),//获取赎楼流程回款详情

  getEndCaseDetail:(p) => get('qbt/qbtCaseSettleLawsuit/getByCaseNumber',p),//获取赎楼流程结案详情
  getOwnsDetail:(p) => get('qbt/qbtCaseArrearsInformation/getDetailById',p),//获取赎楼流程欠款详情

  delOwnsItemById:(p) => get('qbt/qbtCaseArrearsInformation/deleteById',p),//获取赎楼流程欠款详情
  
};

export default workflow;